<cfprocessingdirective pageEncoding="utf-8" />
	<cfscript>
	preference = event.getValue('preference');
	validator = event.getValue('preference.validator', structNew() );
	action = event.linkTo( event.getValue('action') );
	</cfscript>
	<cfoutput>
	
	<h1>Preference</h1>
    <div class="standardForm">	
        <form action="#action#" method="post">
        
        				
            <label for="Idpreference">Idpreference</label>
			<input type="text" id="Idpreference" name="Idpreference" value="#preference.getIdpreference()#" />
			<cfif structKeyExists( validator, 'Idpreference' ) >
			<span class="formError">#validator['Idpreference'][1]#</span>
			</cfif>
						
            <label for="Name">Name</label>
			<input type="text" id="Name" name="Name" value="#preference.getName()#" />
			<cfif structKeyExists( validator, 'Name' ) >
			<span class="formError">#validator['Name'][1]#</span>
			</cfif>
						
            <label for="Description">Description</label>
			<input type="text" id="Description" name="Description" value="#preference.getDescription()#" />
			<cfif structKeyExists( validator, 'Description' ) >
			<span class="formError">#validator['Description'][1]#</span>
			</cfif>
			
			
            <br />
            <div><!----We need to use this div to keep the "submit button" and the "loader image" together.---->
                <input type="submit" value="Submit" class="formButton" /> <img src="img/ajax-loader.gif" alt="Ajax Loader" />
            </div>
        </form>
    </div>
		
    </cfoutput>
	
